import json

from config import BASE_DIR


def build_data():
    with open(BASE_DIR + '\\data\\login_data.json', 'r', encoding='utf-8') as f:
        data = json.loads(f.read())
    data_list = []
    for i in data :
        # data_list.append((i.get('username'),i.get('password'),i.get('expect')))
        i.pop('desc')
        data_list.append(tuple(i.values()))
    return data_list
if __name__ == '__main__':
    print(build_data())